'use strict';
angular.module('app').config(['$stateProvider','$urlRouterProvider',function($stateProvider,$urlRouterProvider){
	$stateProvider.state('index',{
		url:'/index',
		templateUrl:'index.html',
		// controller:''
	}).state('gologin',{ 
		url:'/login',
		templateUrl:'',
		controller:'loginCtrl'
	}).state('search',{ 
		url:'/search',
		templateUrl:'view/search.html',
		controller:'searchCtrl'
	});
	$urlRouterProvider.otherwise('main');	
}])